package com.xzavier.yunlian_interview.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xzavier.yunlian_interview.entity.TechSkills;
import com.xzavier.yunlian_interview.mapper.TechSkillsMapper;
import com.xzavier.yunlian_interview.service.TechSkillsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TechSkillsServiceImpl implements TechSkillsService {
    @Autowired
    private TechSkillsMapper techSkillsMapper;

    @Override
    public List<TechSkills> findAll() {
        QueryWrapper<TechSkills> queryWrapper = new QueryWrapper<>();
        Page<TechSkills> page = new Page<>(1, 10);
        queryWrapper.orderByAsc("id");
//        queryWrapper.like("name", "ark");
        return techSkillsMapper.selectList(queryWrapper);
    }
}
